﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Setting_do_SaveUserEmpl : SessionPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
		string userName = Request.Form["userName"] + "";
		string emplID = Request.Form["emplID"] + "";

		if (string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(emplID))
			Response.End();

		LogicLayer mgr = new LogicLayer();

		SYS_UserEmpl ue = new SYS_UserEmpl();
		ue.EmplID = emplID;
		ue.UserName = userName;
		if(mgr.AddSYS_UserEmpl(ue))
			Response.Write("ok");
		else
			Response.Write("failed");
    }
}